<template>
  <TabBar>
    <TabBarItem link="/home">
      <template v-slot:item_icon>
        <img src="@/assets/images/tabBar/home.svg" alt="" />
      </template>
      <template v-slot:item_icon-active>
        <img src="@/assets/images/tabBar/home_active.svg" alt="" />
      </template>
      <template v-slot:item_text>主页</template>
    </TabBarItem>
    <TabBarItem link="/category">
      <template v-slot:item_icon>
        <img src="@/assets/images/tabBar/category.svg" alt="" />
      </template>
      <template v-slot:item_icon-active>
        <img src="@/assets/images/tabBar/category_active.svg" alt="" />
      </template>
      <template v-slot:item_text>分类</template>
    </TabBarItem>
    <TabBarItem link="/cart">
      <template v-slot:item_icon>
        <img src="@/assets/images/tabBar/shopcart.svg" alt="" />
      </template>
      <template v-slot:item_icon-active>
        <img src="@/assets/images/tabBar/shopcart_active.svg" alt="" />
      </template>
      <template v-slot:item_text>购物车</template>
    </TabBarItem>
    <TabBarItem link="/profile">
      <template v-slot:item_icon>
        <img src="@/assets/images/tabBar/profile.svg" alt="" />
      </template>
      <template v-slot:item_icon-active>
        <img src="@/assets/images/tabBar/profile_active.svg" alt="" />
      </template>
      <template v-slot:item_text>我的</template>
    </TabBarItem>
  </TabBar>
</template>

<script>
import TabBar from '@/components/common/TabBar'
import TabBarItem from '@/components/common/TabBar/Item'

export default {
  name: 'MainTabBar',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style lang="scss" scoped>
</style>
